function LoadDLL(const DLLName: String; var ErrorCode: Integer): Longint;
Loads the specified DLL. Returns the DLL handle if the DLL was loaded successfully, zero otherwise. If zero is returned then ErrorCode specifies the error that occurred. Use SysErrorMessage(ErrorCode) to get a description of the error.
This function is deprecated. See the Using DLLs topic.